package com.jrx.anytxn.common.constant;

/**
 * @description: CommonContants
 * @date: 2019/8/23 10:35
 * @author: zhenghaopu
 */
public class CommonContants {
    /**
     * 数据库关键字
     */
    public static final String SELECT = "SELECT";
    public static final String INSERT = "INSERT";
    public static final String UPDATE = "UPDATE";
    public static final String DELETE = "DELETE";
    public static final String LOWWOR_WHERE = "where";
    public static final String WHERE = "WHERE";
    public static final String METHOD_TYPE_UPDATE = "update";//更新
    public static final String METHOD_TYPE_SAVE = "save";//保存
    public static final String METHOD_TYPE_DEAL = "deal";//处理
    public static final String PRODUCT_SUMMARY_REDIS_KEY = "TXN_PRODUCT_SUMMARY_BATCH_TASK_%s"; //产品金额汇总Map redisKEY
    public static final String CACHE_MAPPING_MAPPER = "CacheMappingMapper.xml";


    //小数保留位数
    public static final int BIGDECIMAL_SCALE = 2;//金额计算保留小数位数
    public static final int BIGDECIMAL_SCALE_4 = 4;//金额计算保留小数位数
    public static final int BIGDECIMAL_SCALE_10 = 10;//除法计算中，保留小数位数
    public static final int BIGDECIMAL_SCALE_7 = 7;//除法计算中，保留小数位数
    public static final int INT_BIGDECIMAL_SCALE_5 = 5; //利息累计账户进行利息计算保留小数位数
    public static final int RES_BIGDECIMAL_SCALE_2 = 2; //接口返回信息中小数位数

    //年月日参数
    public static final int MONTH = 12;
    public static final int DAY360 = 360;
    public static final int CYCLE_DAY = 1;
    public static final int CYCLE_MONTH = 2;
}
